﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MissilTurret : Turret
{
    public GameObject bullet_type;

    protected override void Attack()
    {
        if (timer >= fire_rate)
        {
            timer = 0;
            GameObject go = GameObject.Instantiate(bullet_type, fire_pos.position, Quaternion.identity);
            go.GetComponent<Bullet>().FollowEnemy(enemy_list[0]);
        }
    }
}
